home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Files / FileID.h < prev    next >
Text File  |  1997-06-28  |  433b  |  29 lines

  1. // FileID.h
  2.  
  3. #ifndef FileID_h
  4. #define FileID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class FileID
  11.   {
  12.     private:
  13.         int32 id;
  14.     
  15.         FileID( int32 value )
  16.           : id( value )
  17.           {}
  18.         
  19.     public:
  20.         static FileID Make( int32 value )        { return value; }
  21.     
  22.         int32 ID() const                                { return id; }
  23.         
  24.         bool operator==( FileID f ) const        { return id == f.id; }
  25.         bool operator!=( FileID f ) const        { return id != f.id; }
  26.   };
  27.  
  28. #endif
  29.